import http from "@/utils/http";
import {GW} from "@/common/const";


/**
 * 舆情监控list
 * @param {Object} option
 * @param {Number} option.sortType - 分类 0 热度  1 舆情
 * @param {Number} option.sortType - 页码
 * @param {Number} option.pageSize - 每页数量
 *
 * @return {Promise} Array
 */
export function getMonitorList(option) {
  const url = `${GW}/gw/ynstream/stream/info/block/feeling/monitor/list`;
  const params = {
    sortType: 0,
    pageNo: 1,
    pageSize: 10,
    ...option,
  };
  return http.get(url,  params ); 
}
/**
 * 获取文章详情
 * @param {Object} option
 * @param {Number} option.newsId - 文章id
 * @param stockId                  股票id
 * @param kcType                   1.非科创版 2：科创板
 * @return {Promise} Array
 */
export function getArticleDetail(option) {
  const url = `${GW}/gw/ynstream/stream/info/new/info`;
  const params = {
    newsId: "",
    ...option,
  };
  return http.get(url,  params );
  
}
